import { FC } from "react"
import { DatePicker, Space, Input } from "antd"
import styles from "./index.less"
import "moment/locale/zh-cn"
import locale from "antd/lib/date-picker/locale/zh_CN"

const { RangePicker } = DatePicker

const dateSelector: FC = () => {
  const dateSelectorPlc = "检验名称"
  return (
    <div className={styles.dateSelector}>
      <Space className={styles.dataPickerBox} direction="vertical" size={12}>
        <RangePicker locale={locale} />
      </Space>
      <div className={styles.dateSelectorPlcBox}>
        <Input placeholder={dateSelectorPlc} />
      </div>
    </div>
  )
}

export default dateSelector